/*
 * All rights Reserved, Designed By Rylynn
 * @ClassName:  ClusterListener
 * @Description:
 * @author: rylynn
 * @date:   2021/7/14
 *
 */

package org.etnetwork.engine.akka;

import akka.actor.AbstractActor;
import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.actor.UntypedAbstractActor;
import akka.cluster.InternalClusterAction;
import akka.cluster.protobuf.msg.ClusterMessages;
import akka.japi.pf.ReceiveBuilder;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import org.etnetwork.engine.akka.ControlMessage;


public class ClusterListener extends AbstractActor {

    @Override
    public Receive createReceive() {
        return ReceiveBuilder.create()
                .build();
    }

    public void heartBeat() {

    }

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("akkaCluster", ConfigFactory.load("application.conf"));
    }
}